# Quick check script to create the ReminderScheduler, add jobs and print registered jobs
import sys
import os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from app.scheduler import ReminderScheduler

if __name__ == '__main__':
    rs = ReminderScheduler()
    # Add jobs (this only registers jobs; does not start the blocking scheduler)
    rs.add_reminder_jobs()

    jobs = rs.scheduler.get_jobs()
    print(f"Registered {len(jobs)} job(s):")
    for j in jobs:
        print(f"- id={j.id}, name={j.name}, trigger={j.trigger}")
